package siteflash.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.Text;

@PersistenceCapable
public class Game implements Serializable {
	@PrimaryKey
	@Persistent
	private String alias;
	@Persistent
	private String name;
	@Persistent
	private int played;
	@Persistent
	private Text size;
	@Persistent
	private Date created;
	@Persistent
	private ArrayList<String> tags= new ArrayList<String>();
	@Persistent
	private ArrayList<String> tagSeo= new ArrayList<String>();
	@Persistent
	private Text description;
	@Persistent
	private Text controls;
	@Persistent
	private Text imageThumb;
	@Persistent
	private Text flash;
	@Persistent
	private Text url;
	@Persistent
	private Text type;
	@Persistent
	private int status = 0;

	public String getAlias() {
		return alias;
	}
	public void setAlias(String alias) {
		this.alias = alias;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getPlayed() {
		return played;
	}
	public void setPlayed(int played) {
		this.played = played;
	}
	public Text getSize() {
		return size;
	}
	public void setSize(Text size) {
		this.size = size;
	}
	public Date getCreated() {
		return created;
	}
	public void setCreated(Date created) {
		this.created = created;
	}
	public ArrayList<String> getTags() {
		return tags;
	}
	public void setTags(ArrayList<String> tags) {
		this.tags = tags;
	}
	public ArrayList<String> getTagSeo() {
		return tagSeo;
	}
	public void setTagSeo(ArrayList<String> tagSeo) {
		this.tagSeo = tagSeo;
	}
	public Text getDescription() {
		return description;
	}
	public void setDescription(Text description) {
		this.description = description;
	}
	public Text getControls() {
		return controls;
	}
	public void setControls(Text controls) {
		this.controls = controls;
	}
	public Text getImageThumb() {
		return imageThumb;
	}
	public void setImageThumb(Text imageThumb) {
		this.imageThumb = imageThumb;
	}
	public Text getFlash() {
		return flash;
	}
	public void setFlash(Text flash) {
		this.flash = flash;
	}
	public Text getUrl() {
		return url;
	}
	public void setUrl(Text url) {
		this.url = url;
	}
	public Text getType() {
		return type;
	}
	public void setType(Text type) {
		this.type = type;
	}
	public int getStatus() {
		return status;
	}
	/**
	 * Set status
	 * @param status
	 * @see 0: disable, 1: enable
	 */
	public void setStatus(int status) {
		this.status = status;
	}
	
}
